Office 365 inbound mail configuration using OAuth2

You can use Microsoft Office 365 for inbound email, using Microsoft Graph OAuth2. You need to create an app registration for Microsoft Graph in Office 365, restrict the mailbox access, and then configure the Service Desk mailbox.

For details about how to configure a mail box using IMAP4, see Configuring a mail box for each mapping.